package com.mapforge.listener;

import com.mapforge.map.Tile;
import com.mapforge.selection.TileSelection;

/**
 * This event represents a user selecting a set of tiles.
 * 
 * @author Will Morrison
 * 
 */
public class TileSelectionEvent extends BasicEvent {

	/**
	 * The {@link Tile tiles} selected in this event.
	 */
	private TileSelection tilesSelected;

	/**
	 * Constructs a new tile selection event with a specified selection of tiles
	 * 
	 * @param tilesSelected
	 *            selection of tiles
	 * @param component
	 *            the component this event occurred on
	 */
	public TileSelectionEvent(Object src, TileSelection tilesSelected) {
		super(src);
		this.tilesSelected = tilesSelected;
	}

	/** */
	public TileSelection getTileSelection() {
		return this.tilesSelected;
	}
}
